package com.information.mapper;

import com.common.entity.information.TbInformation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface InformationMapper {

    /**
     * 获取资讯分页列表
     * @param information
     * @return
     */
    List<TbInformation> findAll(TbInformation information);

    /**
     * 修改资讯状态
     * @param id
     */
    void updateStatus(@Param("id") Long id,@Param("status") Integer status);
}
